import Mock from 'mockjs';

let lessonRecord = [{
		key: "/lessonRecord/info",
		method: "get",
		data: Mock.mock({
			'STATUS': "SUCCESS",
			'data': {
				'lessionId': '@increment(1)',
				'recordId': /[0-9]/,
				'clientId': /[0-9]/,
				'courseName': '@cname()',
				'trainName': '@cname()',
				'storeName': '@cname()',
				'courseLongs|2': /[0-9]/ ,
				'coursePrice': /[0-9]/,
				'startTime':'@datetime("yyyy-MM-dd hh:mm:ss")',
				'endTime':'@datetime("yyyy-MM-dd hh:mm:ss")',
			}
		})
	},

	{
		key: "/lessonRecord/list",
		method: "get",
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|10": [{
						'lessionId': '@increment(1)',
						'recordId': /[0-9]/,
						'clientId': /[0-9]/,
						'courseName': '@cname()',
						'trainName': '@cname()',
						'storeName': '@cname()',
						'courseLongs|2': /[0-9]/ ,
						'coursePrice': /[0-9]/,
						'startTime':'@datetime("yyyy-MM-dd hh:mm:ss")',
						'endTime':'@datetime("yyyy-MM-dd hh:mm:ss")',
					}]
				}
			});
		}
	},
	{
		key: "/user/info",
		method: "delete",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': "",
			});
		}
	},
	{
		key: "/user/info",
		method: "put",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': "",
			});
		}
	},
	{
		key: "/user/info",
		method: "post",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': "",
			});
		}
	},
];

export default lessonRecord;
